﻿using System;
using System.Collections.Generic;

using System.Text;

namespace KPIS.GERP.ESS.MODEL
{
    [Serializable]
    public class M_MessageReply
    {
        private int REPLY_SEQ;
        private Nullable<DateTime> REPLY_DATE;
        private string REF_NO;
        private string REPLY_TEXT;
        private Nullable<int> FROM_EMP_SEQ;
        private Nullable<int> TO_EMP_SEQ;
        private Nullable<int> FROM_SEND_SEQ;
        private string REMARKS;
        private string REPLY_TYPE;
        private string MESSAGE_STATUS;

        private string FROM_USER_NAME;
        private string TO_USER_NAME;
        private string FROM_USER_POS_NAME;
        private string TO_USER_POS_NAME;
        private string REPLY_TYPE_NAME;

        private string RECORD_STATUS;
        private Nullable<int> CREATED_BY;
        private Nullable<DateTime> CREATED_WHEN;
        private Nullable<int> UPDATED_BY;
        private Nullable<DateTime> UPDATED_WHEN;

        private int? FROM_POS_SEQ { get; set; }
        private int? TO_POS_SEQ { get; set; }
        private int? WOD_EMP_SEQ { get; set; }
         

        public M_MessageReply()
        {

        }

        public M_MessageReply(
            int REPLY_SEQ
            , Nullable<DateTime> REPLY_DATE
            , string REF_NO
            , string REPLY_TEXT
            , Nullable<int> FROM_EMP_SEQ
            , Nullable<int> TO_EMP_SEQ
            , Nullable<int> FROM_SEND_SEQ
            , string REMARKS
            , string REPLY_TYPE
            , string MESSAGE_STATUS

            , string FROM_USER_NAME
            , string TO_USER_NAME
            , string FROM_USER_POS_NAME
            , string TO_USER_POS_NAME
            , string REPLY_TYPE_NAME

            , string RECORD_STATUS
            , Nullable<int> CREATED_BY
            , Nullable<DateTime> CREATED_WHEN
            , Nullable<int> UPDATED_BY
            , Nullable<DateTime> UPDATED_WHEN

            , Nullable<int> FROM_POS_SEQ
            , Nullable<int> TO_POS_SEQ
            , Nullable<int> WOD_EMP_SEQ)
        {
            this.REPLY_SEQ = REPLY_SEQ;
            this.REPLY_DATE = REPLY_DATE;
            this.REF_NO = REF_NO;
            this.REPLY_TEXT = REPLY_TEXT;
            this.FROM_EMP_SEQ = FROM_EMP_SEQ;
            this.TO_EMP_SEQ = TO_EMP_SEQ;
            this.FROM_SEND_SEQ = FROM_SEND_SEQ;
            this.REMARKS = REMARKS;
            this.REPLY_TYPE = REPLY_TYPE;
            this.MESSAGE_STATUS = MESSAGE_STATUS;

            this.FROM_USER_NAME = FROM_USER_NAME;
            this.TO_USER_NAME = TO_USER_NAME;
            this.FROM_USER_POS_NAME = FROM_USER_POS_NAME;
            this.TO_USER_POS_NAME = TO_USER_POS_NAME;
            this.REPLY_TYPE_NAME = REPLY_TYPE_NAME;

            this.RECORD_STATUS = RECORD_STATUS;
            this.CREATED_BY = CREATED_BY;
            this.CREATED_WHEN = CREATED_WHEN;
            this.UPDATED_BY = UPDATED_BY;
            this.UPDATED_WHEN = UPDATED_WHEN;

            this.FROM_POS_SEQ = FROM_POS_SEQ;
            this.TO_POS_SEQ = TO_POS_SEQ;
            this.WOD_EMP_SEQ = WOD_EMP_SEQ;
        }

        public int reply_seq
        {
            set { REPLY_SEQ = value; }
            get { return REPLY_SEQ; }
        }

        public Nullable<DateTime> reply_date
        {
            set { REPLY_DATE = value; }
            get { return REPLY_DATE; }
        }

        public string ref_no
        {
            set { REF_NO = value; }
            get { return REF_NO; }
        }

        public string reply_text
        {
            set { REPLY_TEXT = value; }
            get { return REPLY_TEXT; }
        }

        public Nullable<int> from_emp_seq
        {
            set { FROM_EMP_SEQ = value; }
            get { return FROM_EMP_SEQ; }
        }
        public Nullable<int> from_pos_seq
        {
            set { FROM_POS_SEQ = value; }
            get { return FROM_POS_SEQ; }
        }

        public Nullable<int> to_emp_seq
        {
            set { TO_EMP_SEQ = value; }
            get { return TO_EMP_SEQ; }
        }

        public Nullable<int> to_pos_seq
        {
            set { TO_POS_SEQ = value; }
            get { return TO_POS_SEQ; }
        }

        public Nullable<int> wod_emp_seq
        {
            set { WOD_EMP_SEQ = value; }
            get { return WOD_EMP_SEQ; }
        }

        public Nullable<int> from_send_seq
        {
            set { FROM_SEND_SEQ = value; }
            get { return FROM_SEND_SEQ; }
        }

        public string remarks
        {
            set { REMARKS = value; }
            get { return REMARKS; }
        }

        public string reply_type
        {
            set { REPLY_TYPE = value; }
            get { return REPLY_TYPE; }
        }

        public string message_status
        {
            set { MESSAGE_STATUS = value; }
            get { return MESSAGE_STATUS; }
        }

        public string from_user_name
        {
            set { FROM_USER_NAME = value; }
            get { return FROM_USER_NAME; }
        }

        public string to_user_name
        {
            set { TO_USER_NAME = value; }
            get { return TO_USER_NAME; }
        }

        public string from_user_pos_name
        {
            set { FROM_USER_POS_NAME = value; }
            get { return FROM_USER_POS_NAME; }
        }

        public string to_user_pos_name
        {
            set { TO_USER_POS_NAME = value; }
            get { return TO_USER_POS_NAME; }
        }

        public string reply_type_name
        {
            set { REPLY_TYPE_NAME = value; }
            get { return REPLY_TYPE_NAME; }
        }

        public string record_status
        {
            set { RECORD_STATUS = value; }
            get { return RECORD_STATUS; }
        }

        public Nullable<int> created_by
        {
            set { CREATED_BY = value; }
            get { return CREATED_BY; }
        }

        public Nullable<DateTime> created_when
        {
            set { CREATED_WHEN = value; }
            get { return CREATED_WHEN; }
        }

        public Nullable<int> updated_by
        {
            set { UPDATED_BY = value; }
            get { return UPDATED_BY; }
        }

        public Nullable<DateTime> updated_when
        {
            set { UPDATED_WHEN = value; }
            get { return UPDATED_WHEN; }
        }
    }
}
